package com.cd.sendRequest.jpa.domain;

import com.cd.common.domain.BaseDomain;
import com.cd.form.jpa.domian.FormAuthId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;
import java.util.Date;
/**
 * @Description:用于记录抖音粉丝数
 * @Author: lqq
 * @Date: 2020/1/17 11:04
 */
@Data
@Entity
@Table(name = "db_extra_dy_result",
        indexes = {
                @Index(name = "idx_user_id", columnList = "user_id") // 添加索引优化查询性能
        })
@NoArgsConstructor
@AllArgsConstructor

public class DYResult extends BaseDomain {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "result_id")
    private Long resultId;

    //用户id
    @Column(name = "user_id")
    private String userId;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "follower_count")
    private Long followerCount;

    @Column(name = "record_time", length = 10, columnDefinition = "VARCHAR(10)")
    private String recordTime;
}